﻿using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.Customers;

/// <summary>
/// Represents a reward points model to add to the customer
/// </summary>
public partial record AddRewardPointsToCustomerModel : BaseNopModel
{
    #region Ctor

    public AddRewardPointsToCustomerModel()
    {
        AvailableStores = new List<SelectListItem>();
    }

    #endregion

    #region Properties

    public int CustomerId { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.Points")]
    public int Points { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.Message")]
    public string Message { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.Store")]
    public int StoreId { get; set; }

    public IList<SelectListItem> AvailableStores { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.ActivatePointsImmediately")]
    public bool ActivatePointsImmediately { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.ActivationDelay")]
    public int ActivationDelay { get; set; }

    public int ActivationDelayPeriodId { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.PointsValidity")]
    [UIHint("Int32Nullable")]
    public int? PointsValidity { get; set; }

    #endregion
}